package com.gxa.p2p.mapper;

import com.gxa.p2p.pojo.Repayrecord;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author Bei
 * @date 2021/10/27 16:27
 */
public interface RepaymentMapper {
    /**
     * 接口22
     * 廖泓宇 还款管理全查（可条件模糊）
     */
    List<Repayrecord> findRepay(String borrowName,String phone,Integer page,Integer size,String state1,String state2,String state3,String state4);
    List<Repayrecord> findRepayExport(String borrowName,String phone,String state1,String state2,String state3,String state4);

    /**
     * 接口22.1
     * 廖泓宇 count
     */
    Integer findRepayCount(String borrowName,String phone,String state1,String state2,String state3,String state4);

    /**
     * 查询指定标的指定时间是否有记录
     * @param markName
     * @param start
     * @param end
     * @return
     */
    Repayrecord findByTime(String markName, Timestamp start,Timestamp end);

}
